<template>
  <div id="microApp"></div>
</template>

<script lang="ts">
import { start } from 'qiankun'

export default {
  mounted() {
    console.log('micro App.vue')
    // qiankun 的启动时机调整到路由页内部进行
    // @ts-ignore
    if (!window.qiankunStarted) {
      // @ts-ignore
      window.qiankunStarted = true
      start()
    }
  },
}
</script>
<style lang="less">
/* stylelint-disable  */
#microApp > div:first-child {
  height: 100%;
}
</style>
